<?php /*a:5:{s:54:"E:\course\blog\application/index/view\index\index.html";i:1517316025;s:55:"E:\course\blog\application/index/view\public\_meta.html";i:1517314784;s:54:"E:\course\blog\application/index/view\public\_nav.html";i:1517323871;s:57:"E:\course\blog\application/index/view\public\_footer.html";i:1517314877;s:53:"E:\course\blog\application/index/view\public\_js.html";i:1517314931;}*/ ?>
<!doctype html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Dreamphp v1.0博客</title>
    <link rel="shortcut icon" href="/static/index/images/logo.jpg" type="image/x-icon">
    <link rel="stylesheet" href="/static/index/css/bootstrap.min.css">
    <link rel="stylesheet" href="/static/index/css/main.css">
</head>
<body>
<!--导航条-->
<nav class="navbar navbar-default navbar-static-top">
    <div class="container">
        <div class="navbar-header">
            <a href="<?php echo url('index/index/index'); ?>" class="navbar-brand">DreamPHP</a>
        </div>
        <div class="navbar-menu">
            <ul class="nav navbar-nav">
                <li><a href="<?php echo url('index/index/index'); ?>">首页</a></li>
                <?php if(is_array($cateInfo) || $cateInfo instanceof \think\Collection || $cateInfo instanceof \think\Paginator): $i = 0; $__LIST__ = $cateInfo;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                <li><a href="<?php echo url('index/index/index', ['cateid' => $vo['id']]); ?>"><?php echo htmlentities($vo['catename']); ?></a></li>
                <?php endforeach; endif; else: echo "" ;endif; ?>
            </ul>
            <ul class="nav navbar-nav navbar-right">
                <?php if(session('?username')): ?>
                <li><a href="#"><?php echo session('username'); ?></a></li>
                <li><a href="<?php echo url('index/index/loginout'); ?>">退出</a></li>
                <?php else: ?>
                <li><a href="<?php echo url('index/index/login'); ?>">登录</a></li>
                <li><a href="register.html">注册</a></li>
                <?php endif; ?>
            </ul>
        </div>
    </div>
</nav>
<!--导航条-->

<!--主体部分-->
<div class="container body">
    <div class="row">
        <div class="col-xs-8">
            <div class="article-list">
                <?php if(is_array($articleInfo) || $articleInfo instanceof \think\Collection || $articleInfo instanceof \think\Paginator): $i = 0; $__LIST__ = $articleInfo;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                <div class="article-list-item">
                    <a href="<?php echo url('index/index/article', ['id' => $vo['id']]); ?>" class="article-title"><?php echo htmlentities($vo['title']); ?></a>
                    <div class="article-info">
                            <span class="article-author">
                                <img src="/static/index/images/avatar.jpg" alt="author">DreamPHP
                            </span>-
                        <span class="article-comment">15K评论</span>-
                        <span class="article-readtime">10分钟前</span>
                    </div>
                </div>
                <?php endforeach; endif; else: echo "" ;endif; ?>
                <nav>
                    <?php echo $articleInfo->render(); if($articleInfo->count() > 0): else: ?>无数据<?php endif; ?>
                </nav>
            </div>
        </div>
        <div class="col-xs-4">
            <div class="search">
                <form action="#" class="search">
                    <div class="form-group">
                        <div class="input-group">
                            <input type="search" class="form-control" placeholder="文章搜索">
                            <span class="input-group-btn">
                                    <button class="btn" type="submit">
                                        <span class="glyphicon glyphicon-search"></span>
                                    </button>
                                </span>
                        </div>
                    </div>
                </form>
            </div>
            <div class="ad-card">
                <div class="ad-type">广告位置</div>
                <div class="ad-content">
                    <a href="#" class="ad-title">DreamPHP开课了</a>
                    <a href="#" class="ad-title">DreamPHP开课了</a>
                    <a href="#" class="ad-title">DreamPHP开课了</a>
                    <a href="#" class="ad-title">DreamPHP开课了</a>
                    <a href="#" class="ad-title">DreamPHP开课了</a>
                </div>
            </div>
        </div>
    </div>
</div>
<!--主体部分-->

<!--页脚部分-->
<div class="footer">
    <p>Copyright 2018 <a href="#">http://www.dreamphp.com.cn/</a> All Rights Reserved </p>
</div>
<!--页脚部分-->

<script src="/static/index/js/jquery-3.3.1.min.js"></script>
<script src="/static/index/js/bootstrap.min.js"></script>
</body>
</html>